package com.blogsoho.taurus.services;

import com.blogsoho.taurus.vm.ResponsePagerWrapper;
import com.blogsoho.taurus.vm.ResponseWrapper;
import com.blogsoho.taurus.vo.AttachmentVo;

import java.util.List;

/**
 * Created by 16978 on 2017/6/17.
 */
public interface AttachmentService {
    ResponseWrapper<?> addAttachment(AttachmentVo attachment);

    ResponseWrapper<AttachmentVo> getAttachmentByMD5(String md5);

    ResponseWrapper<Integer> addAttachmentMapping(int aid, int cid);

    ResponsePagerWrapper<List<AttachmentVo>> getAllAttachment(int start, int length);
}
